package reflective;

public class ReflectiveTest4 {
    public static void main(String[] args) {
        ClassLoader classLoader1 = ReflectiveTest4.class.getClassLoader();
        System.out.println(classLoader1);   // sun.misc.Launcher$AppClassLoader@18b4aac2

        ClassLoader classLoader2 = classLoader1.getParent();
        System.out.println(classLoader2);   // sun.misc.Launcher$ExtClassLoader@677327b6

        ClassLoader classLoader3 = classLoader2.getParent();
        System.out.println(classLoader3);   // null
    }
}
